package com.lyn.serialPort;

import java.io.FileDescriptor;
import java.io.InputStream;
import java.io.OutputStream;

/**
 * 端口
 * @author Lyn 2022/12/24
 * @version 1.0.0
 */
public interface Port {

    boolean open(String name, int baudRate);

    String getName();

    String getPath();

    int getBaudRate();

    FileDescriptor getFileDescriptor();

    InputStream getInputStream();

    OutputStream getOutputStream();

    byte[] send(byte[] data, long timeOut);

    boolean close();


}
